package com.zhekou.service;

import com.zhekou.bo.Product;
import com.zhekou.dao.ProductDAO;
import com.zhekou.util.JdbcPage;

/**
 * Created by IntelliJ IDEA.
 * User: unicorn3964
 * DateTime: 12-11-21 下午4:10
 */
public class ProductService {
    private ProductDAO productDAO;

    public JdbcPage<Product> getList(int curPage, int pageSize) {
        return productDAO.getList(curPage, pageSize);
    }

    public void setProductDAO(ProductDAO productDAO) {
        this.productDAO = productDAO;
    }

    public Product get(int id) {
        return productDAO.get(id);
    }
}
